package com.example.demo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2023-06-01
 * Time:23:27
 */
@Component
@Data
@ConfigurationProperties("student")//读取配置文件中对象
public class Student {
    private String name;
    private int age;
    private int id;
}
